﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Clothes.Model;
using Clothes.IBLL;
using Clothes.IDAL;
using Clothes.DAL;

namespace Clothes.BLL
{
    public class shoppingBLL : shoppingIBLL
    {
        shoppingIDAL shopping = new shoppingDAL();

        public bool Delect(int id)
        {
            return shopping.Delect(id);
        }

        public bool InsertBLL(shopping pin)
        {
            return shopping.Insert(pin);
        }

        public List<shopping> Select(int idd)
        {
            return shopping.Select(a=>a.CLLoginId==idd);
        }

        public shopping SelectId(int id)
        {
            return shopping.Tiao(a => a.Id == id);
        }
    }
}
